﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace G15_Agent.Models
{
    public class DanhSachNCC
    {
        public DanhSachNCC()
        {
            this.HoaDonNCCs = new List<HoaDonNCC>();
        }
        //[Required(ErrorMessage = "Nhập Mã NCC")]
        public string MaNCC { get; set; }
        [Required(ErrorMessage = "Nhập tên NCC")]
        public string TenNCC { get; set; }
        public double TLGiaNCC { get; set; }
        public double TLGiaKH { get; set; }
        public string DiaChiWS { get; set; }
        public string Username { get; set; }
        public string Pass { get; set; }
        public Nullable<int> LoaiNCC { get; set; }
        public Nullable<bool> TrangThai { get; set; }
        public virtual LoaiNCC LoaiNCC1 { get; set; }
        public virtual ICollection<HoaDonNCC> HoaDonNCCs { get; set; }
    }
}
